package com.feng.ioc.configuration;

import com.feng.ioc.bean.Init_Destory1;
import com.feng.ioc.bean.Init_Destory2;
import com.feng.ioc.bean.Init_Destory3;
import com.feng.ioc.bean.Init_Destory4;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Init_Des_Config {
    @Bean(value = "ID",initMethod = "init",destroyMethod = "destory")
    public Init_Destory1 init_destory(){
        return new Init_Destory1();
    }

    @Bean("ID2")
    public Init_Destory2 init_destory2(){
        return  new Init_Destory2();
    }

    @Bean("ID3")
    public Init_Destory3 init_destory3(){
        return  new Init_Destory3();
    }

    @Bean("ID4")
    public Init_Destory4 init_destory4(){
        return  new Init_Destory4();
    }
}
